#!/usr/bin/env perl

use strict;
use Archive::Tar;

my $project = 'letouj-emacs-cfg';
my $tar = Archive::Tar->new;
my @tarFiles;

open(GIT, 'git ls-files |');
FILE: while (<GIT>) {
    chomp;
    push @tarFiles, $_;
}
close GIT;

$tar->add_files(@tarFiles);
$tar->write(($project . '.tar.gz'), 9, $project);
